package com.yu.boot2.config;

import com.yu.boot2.lock.CacheKeyGenerator;
import com.yu.boot2.lock.LockKeyGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zy
 * @date 2018/6/28 下午3:38
 */
@Configuration
public class BaseConfig {

    @Bean
    public CacheKeyGenerator cacheKeyGenerator() {
        return new LockKeyGenerator();
    }
}
